package com.vietnam.power.dao;

import java.util.List;

import com.vietnam.power.domain.UserSearchCriteria;
import com.vietnam.power.persitence.UserInfo;

/**
 * @author DinhCuong
 * 
 */
public interface UserDao {

	/**
	 * getUserByUserName
	 * 
	 * @param username
	 * @return UserInfo
	 */
	public UserInfo getUserByUserName(String username);

	/**
	 * 
	 * @param userInfo
	 */
	public void updateUserInfo(UserInfo userInfo);

	/**
	 * 
	 * @param userInfo
	 */
	public void createUserInfo(UserInfo userInfo);
	
	public UserInfo getUserById(int id);
	
	public List<UserInfo> searchUser(UserSearchCriteria criteria);
	
}
